package com.b.repository;

import com.b.domain.FavoriteVideo;
import com.github.pagehelper.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface FavoriteVideoRepository extends ElasticsearchRepository<FavoriteVideo, Integer> {
    List<FavoriteVideo> findByFavoriteId(Integer userId);

    Page<FavoriteVideo> findPageByFavoriteId(Integer userId, Pageable pageable);
}
